FROM nginx:1.16.0
ADD nginx-plat.conf /etc/nginx/mysite.template
ADD build/ /usr/share/nginx/html/
ENV BACKEND_URL=''
EXPOSE 5000
CMD  envsubst '${BACKEND_URL}' < /etc/nginx/mysite.template > /etc/nginx/conf.d/nginx.conf && nginx -g 'daemon off;'
